import { ApiProperty } from "@midwayjs/swagger";

import { BaseEntity } from "../../util";

export class FbMessageConfigDTO extends BaseEntity {
    @ApiProperty({
        description: 'ID'
    })
    id: number;

    @ApiProperty({
        description: '配置名称'
    })
    config_info: string;

    @ApiProperty({
        description: '线体ID(多个，以,隔开)'
    })
    assembly_id: string;

    @ApiProperty({
        description: '域账号(多个，以,隔开)'
    })
    account: string;

    @ApiProperty({
        description: '群ID'
    })
    chatId: string;

    @ApiProperty({
        description: '状态(0启用 1禁用)'
    })
    config_status: string;

    @ApiProperty({
        description: '定向发送类型'
    })
    config_type: number;

    @ApiProperty({
        description: '警示值'
    })
    value_goal: string;

    @ApiProperty({
        description: '消息类型'
    })
    config_index: string;

    @ApiProperty({
        type: 'array',
        enum: [0, 1, 2],
        example: 0,
        description: '接收类型(0：人，1：群，2：人&群)'
    })
    reception_type: number;
}

export class hrUserDTO extends BaseEntity {
    @ApiProperty({
        description: 'account'
    })
    account: string;
}

export class hrAssemblyDTO extends BaseEntity {
    @ApiProperty({
        description: 'assembly_id'
    })
    assembly_id: string;
}